<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
	$whitelist = array('localhost', '127.0.0.1');

	if(in_array($_SERVER['HTTP_HOST'], $whitelist)){
    	echo '<base href="/juro/" />';
	}
	else {
		echo '<base href="/" />';	
	}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php if($this->router->method == 'location'): ?>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<?php endif;?>
<title><?php echo $title;?></title>
<?php echo $this->load->view('layouts/html/_head_default.php'); ?>
</head>

<body <?php echo $this->router->method == 'location' ? 'onload="initialize()"' : '' ;?>>

	<?php echo $this->load->view('layouts/html/_top_default');?>
	
	<?php echo $yield; ?>
	
	<?php echo $this->load->view('layouts/html/_footer_default');?>

</body>
</html>